﻿using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations.Schema;
using System.ComponentModel.DataAnnotations;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Text.Json.Serialization;

namespace Model
{
    //教师表
    public class Teacher
    {
        [Key, DatabaseGenerated(DatabaseGeneratedOption.Identity)]
        //教师id
        public int TeacherId { get; set; }
        //教师名称
        public string TeacherName { get;set; }
        //教师手机
        public string TeacherPhone { get; set; }
        //教师头像
        public string TeacherHead { get; set; }
        //教师密码
        public string TeacherPwd { get; set; }
        //教室等级
        public int Grade { get; set; }
        //软删除
        public Boolean IsDelete { get; set; }
        //创建时间
        public DateTime CreateTime { get; set; } = DateTime.Now;
        //更新时间
        public DateTime UpdateTime { get; set; } = DateTime.Now;

        //导航属性
        [JsonIgnore]
        //指向CourseSelect
        public List<CourseSelect> CourseSelects { get; set; }
        //指向CourseScheduling
        public List<CourseScheduling> CourseSchedulings { get;set; }
        //指向LearningMaterial
        public LearningMaterial LearningMaterial { get; set; }
    }
}
